package com.hantang.web.servlet;

import java.io.PrintWriter;

import javax.servlet.http.HttpServletRequest;

import com.hantang.web.json.handlers.QueryUserPubArticlesHandler;

public class QueryUserPubArticlesServlet extends BaseServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4564460508854620487L;

	@Override
	public int doService(HttpServletRequest request, PrintWriter out) {
		String username = request.getParameter("username");
		String slastUpdatetime = request.getParameter("lastupdatetime");
		String scount = request.getParameter("count");
		
		String sret = QueryUserPubArticlesHandler.handleServlet(username, slastUpdatetime, scount);
		out.print(sret);
		
		return SERVLET_SUCCESS_CODE;
	}

}
